// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'ContactID',
        footer: "Foots",
        cnName: '学生联系方式',
        name: 'Nyz_StudentContacts',
        url: "/Nyz_StudentContacts/",
        sortName: "CreateDate"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"ContactType":"","ContactValue":"","IsPrimary":""};
    const editFormOptions = [[{"title":"是否主要联系方式","field":"IsPrimary"},
                               {"title":"联系方式类型","required":true,"field":"ContactType","type":"number"},
                               {"title":"联系号码","required":true,"field":"ContactValue"}]];
    const searchFormFields = {};
    const searchFormOptions = [];
    const columns = [{field:'ContactID',title:'ContactID',type:'guid',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'StudentID',title:'StudentID',type:'guid',width:110,hidden:true,require:true,align:'left'},
                       {field:'ContactType',title:'联系方式类型',type:'byte',width:110,require:true,align:'left'},
                       {field:'ContactValue',title:'联系号码',type:'string',width:120,require:true,align:'left'},
                       {field:'IsPrimary',title:'是否主要联系方式',type:'bool',width:110,align:'left'},
                       {field:'CreateID',title:'CreateID',type:'int',width:100,hidden:true,align:'left'},
                       {field:'Creator',title:'Creator',type:'string',width:100,hidden:true,align:'left'},
                       {field:'CreateDate',title:'CreateDate',type:'datetime',width:150,hidden:true,align:'left'},
                       {field:'ModifyID',title:'ModifyID',type:'int',width:100,hidden:true,align:'left'},
                       {field:'Modifier',title:'Modifier',type:'string',width:100,hidden:true,align:'left'},
                       {field:'ModifyDate',title:'ModifyDate',type:'datetime',width:150,hidden:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}